<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%	
WebAction webAction = new WebAction(request, response);

String type = webAction.getParameterString("type");
UserBean userBean = null;
if(type!=null&&type.length()>0) {
	if(type.equals("id")) {
		int id = webAction.getParameterInt("id");
		userBean = ForumCache.getUser(id);
	} else if(type.equals("account")) {
		String account = webAction.getParameterString("account");
		userBean = ForumCache.getUser(account);
	}
}

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="com.yymmarket.forum.bbs.BBSService"%>
<%@page import="com.yymmarket.framework.WebAction"%>
<%@page import="java.util.List"%>
<%@page import="com.yymmarket.forum.bbs.BBSBean"%>
<%@page import="com.yymmarket.util.SqlUtil"%>
<%@page import="com.yymmarket.util.db.DbOperation"%>
<%@page import="com.yymmarket.forum.user.UserBean"%>
<%@page import="com.yymmarket.forum.cache.ForumCache"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理页面</title>
<link href="../../css/common.css" rel="stylesheet" type="text/css">
</head>
<body>
<%if(userBean!=null) {%>
ID:<%=userBean.getId() %><br/>
账号:<%=userBean.getAccount() %><br/>
昵称:<%=userBean.getUserName() %><br/>
密码:<%=userBean.getPassword() %><br/>
手机:<%=userBean.getPhone() %><br/>
性别:<%=userBean.getGender()==0?"女":"男" %><br/>
<%} %>
<form action="getUsers.jsp" method="get">
<input type="hidden" name="type" value="id"/>
用户ID:<input type="text" name="id" /><br/>
<input type="submit" value="根据ID查询"/>
</form>
<form action="getUsers.jsp" method="get">
<input type="hidden" name="type" value="account"/>
用户账号:<input type="text" name="account" /><br/>
<input type="submit" value="根据账号查询"/>
</form>
</body>
</html>